package com.sunlands.deskmate.service.impl;

import com.sunlands.deskmate.mapper.MessageRepository;
import com.sunlands.deskmate.message.entity.Messages;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MongoMessageService {

    @Autowired
    private MessageRepository messageRepository;

    public void insert(Messages message) {
        messageRepository.insert(message);
    }

    public void save(Messages message) {
        messageRepository.save(message);
    }

}
